<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    console.log(Number.MAX_SAFE_INTEGER) // 9007199254740991
    const num1 = 9007199254740991 + 1
    const num2 = 9007199254740991 + 2
    console.log(num1) // 9007199254740992
    console.log(num2) // 9007199254740992

    const num3 = 9007199254740992n
    const num4 = 9007199254740993n
    console.log(num3) // 9007199254740992n
    console.log(num4) // 9007199254740993n
    

  </script>
</body>

</html>